<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%--
  Created by IntelliJ IDEA.
  User: 董灌磊
  Date: 2024/4/12
  Time: 8:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/webjars/layui/2.6.8/css/layui.css">
    <script src="/webjars/layui/2.6.8/layui.js"></script>
</head>
<body>
<table id="parkstateTable" lay-filter="parkstateTables"  class="layui-table layui-table-hover"></table>
<script>
    layui.use(function (){
        let table=layui.table;
        table.render({
            id:"one",
            elem:"#parkstateTable",
            url:"/park/parklist",
            toolbar: "#headTool",
            cols:[[
                {field:'number',align: 'center',type:'numbers',title:"编号"},
                {field:'id',align: 'center',hide:true,title:"序号"},
                {field:'parstatename',align: 'center',title:"规则名"},
                {field:'price',align: 'center',title:"价钱"},
            ]]
        })
    })
</script>
</body>
</html>
